<%- include('../../common/header.html',{css:'common'}) %>

<script id="actual-price-template" type="text/x-handlebars-template">
        <form class='form-horizontal form-update-actual-price'>
            <div class="form-group">
                <div class="col-sm-12">
                    <div class="alert alert-danger" style="font-size: 12px;">请慎重填写!</div>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">订单价格：</label>
                <div class="col-sm-4">
                    <input type="number" data-rule-required="true" name="actualPrice" class="form-control hp-refuse">
                </div>
                <div class="col-sm-5 error-container"></div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label"></label>
                <div class="col-sm-4">
                    <button type="submit"
                            data-loading-text="处理中..."
                            class="btn btn-primary btn-update-actual-price">提交
                    </button>
                </div>
                <div class="col-sm-5 error-container"></div>
            </div>
        </form>

    </script>
    <script id="lading-bill-template" type="text/x-handlebars-template">
        <form class='form-horizontal create-lading-bill'>
            <div class="form-group">
                <label class="col-sm-3 control-label">提单类型</label>
                <div class="col-sm-6">
                    <label class="radio-inline">
                        <input type="radio" name="type" checked value="0"> 车号
                    </label>
                    <label class="radio-inline">
                        <input type="radio" name="type" value="1"> 介绍信
                    </label>
                    <label class="radio-inline">
                        <input type="radio" name="type" value="2"> 转货权
                    </label>
                </div>
                <div class="col-sm-3 error-container"></div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">车号/收货公司</label>
                <div class="col-sm-6">
                    <input class="form-control" placeholder="车号/收货公司" name="carId">
                </div>
                <div class="col-sm-3 error-container"></div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">司机姓名</label>
                <div class="col-sm-6">
                    <input class="form-control" placeholder="司机姓名" name="driver">
                </div>
                <div class="col-sm-3 error-container"></div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">司机电话</label>
                <div class="col-sm-6">
                    <input class="form-control" placeholder="司机电话" name="driverPhone">
                </div>
                <div class="col-sm-3 error-container"></div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">本次发货数量</label>
                <div class="col-sm-6">
                    <input class="form-control" placeholder="本次发货数量" data-rule-required='true' name="numberThisTime">
                </div>
                <div class="col-sm-3 error-container"></div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">提单有效期</label>
                <div class="col-sm-6">
                    <input class="form-control" data-rule-required='true' data-toggle="datepicker" placeholder="提单有效期"
                           data-rule-required='true' name="expireTime">
                </div>
                <div class="col-sm-3 error-container"></div>
            </div>

            <div class="form-group">
                <div class="col-sm-offset-3 col-sm-9">
                    <button type="submit" data-loading-text="提交中..." class="btn btn-danger btn-create-lading-bill">提交
                    </button>
                </div>
            </div>
        </form>

    </script>
    <title>用户管理-后台管理系统</title>
</head>
<body class="sub-body">
<%- include('../../common/top-nav.html') %>
<%- include('../../common/page-title.html',{navs:[
{label:'首页',url:'../../main.html'},
{label:'仓库管理',url:'javascript:void(0)'},
{label:'结算中心',url:'javascript:void(0)'},
{label:'订单结算',url:'javascript:void(0)'},
]}) %>
<div class="content">
    <div class="panel panel-default" style="overflow-y: auto;">

        <div class="panel-body">
            <div class="col-sm-12">
                <ul class="nav nav-tabs nav-primary">
                    <li role="presentation" class="active"><a href="javascript:void(0);">订单结算</a></li>
                    <li role="presentation"><a href="./commission.html">佣金结算</a></li>
                </ul>
            </div>
            <div class="col-sm-12">
                <br/>
                <div class="btn-group" role="group" aria-label="...">

                </div>
                <div class="input-group" style="float: right;width: 300px;">
                    <input type="text" class="form-control search" placeholder="请输入...">
                    <span class="input-group-btn">
                        <button class="btn btn-default search-btn"
                                data-loading-text="查询中..."
                                type="button">查询</button>
                      </span>
                </div>
            </div>

            <div class="modal fade add-user-modal-lg" tabindex="-1" role="dialog"
                 aria-labelledby="myLargeModalLabel" aria-hidden="true">
                <div class="modal-dialog modal-lg">
                    <div class="modal-content">
                        <div class="modal-header">
                            <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
                                    aria-hidden="true">&times;</span></button>
                            <h5 class="modal-title" id="myModalLabel">新建</h5>
                        </div>
                        <div class="modal-body">
                            <form class='form-horizontal' id="user-form">
                                <div class="form-group">
                                    <label for="validate-name" class="col-sm-2 control-label">姓名</label>
                                    <div class="col-sm-6">
                                        <input type="hidden" name="id">
                                        <input type="text" class="form-control" id="validate-name"
                                               placeholder="姓名" data-rule-minlength="2"
                                               data-rule-required='true'
                                               name='name'>
                                    </div>
                                    <div class="col-sm-4 error-container"></div>
                                </div>
                                <div class="form-group">
                                    <label for="validate-username" class="col-sm-2 control-label">用户名</label>
                                    <div class="col-sm-6">
                                        <input type="text" class="form-control" id="validate-username"
                                               placeholder="用户名" data-rule-minlength="2"
                                               data-rule-required='true'
                                               name='userName'>
                                    </div>
                                    <div class="col-sm-4 error-container"></div>
                                </div>
                                <div class="form-group">
                                    <label for="validate-password"
                                           class="col-sm-2 control-label">密码</label>
                                    <div class="col-sm-6">
                                        <input type="password" class="form-control"
                                               name="password"
                                               id="validate-password"
                                               placeholder="密码" data-rule-required='true'
                                               data-rule-minlength="6" data-rule-maxlength='12'>
                                    </div>
                                    <div class="col-sm-4 error-container"></div>
                                </div>
                                <div class="form-group">
                                    <label
                                            class="col-sm-2 control-label">性别</label>
                                    <div class="col-sm-6">
                                        <label class="radio-inline">
                                            <input type="radio" name="gender" id="inlineRadio1" value="1"> 男
                                        </label>
                                        <label class="radio-inline">
                                            <input type="radio" name="gender" id="inlineRadio2" value="0"> 女
                                        </label>
                                    </div>
                                    <div class="col-sm-4 error-container"></div>
                                </div>
                                <div class="form-group">
                                    <label for="validate-phone"
                                           class="col-sm-2 control-label">手机号</label>
                                    <div class="col-sm-6">
                                        <input type="number" class="form-control"
                                               name="phone"
                                               id="validate-phone"
                                               placeholder="手机号" data-rule-required='true'
                                               data-rule-length="11">
                                    </div>
                                    <div class="col-sm-4 error-container"></div>
                                </div>

                                <div class="form-group">
                                    <div class="col-sm-offset-2 col-sm-10">
                                        <button id="submit"
                                                type="submit"
                                                data-loading-text="提交处理中..."
                                                class="btn btn-primary"
                                                autocomplete="off"
                                        >保存
                                        </button>
                                    </div>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
            <div class="modal fade order-check">
                <div class="modal-dialog">
                    <div class="modal-content">
                        <div class="modal-header">
                            <button
                                    type="button" class="close"
                                    data-dismiss="modal" aria-label="Close"><span
                                    aria-hidden="true">&times;</span></button>
                            <h5 class="modal-title">审核订单</h5>
                        </div>
                        <div class="modal-body">
                            <div class='form-horizontal'>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label">拒绝原因：</label>
                                    <div class="col-sm-6">
                                        <input type="text" class="form-control hp-refuse">
                                    </div>
                                    <div class="col-sm-3 error-container">(拒绝时必填)</div>
                                </div>
                            </div>
                        </div>
                        <div class="modal-footer">
                            <button type="button" class="btn btn-primary btn-lg" data-ok="modal">通过</button>
                            <button type="button" class="btn btn-danger btn-lg" data-ok="modal">拒绝</button>
                        </div>
                    </div>
                </div>
            </div>

            <div class="col-sm-12">
                <div class="table-responsive" style="margin-top: 12px;">
                    <div class="com-loading">
                        <img src="/admin/imgs/loading/loading.gif" alt="">
                    </div>
                    <table class="table table-bordered table-hover">
                        <thead>
                        <tr>
                            <th>#</th>
                            <th>
                                订单编号
                                <i data-sort="no" class="pull-right fa fa-sort"></i>
                            </th>
                            <th>
                                客户名称
                                <i data-sort="clientele_name" class="pull-right fa fa-sort"></i>
                            </th>
                            <th>客户联系人
                                <i data-sort="clientele_user_name" class="pull-right fa fa-sort"></i>
                            </th>
                            <th>联系人手机
                                <i data-sort="clientele_user_phone" class="pull-right fa fa-sort"></i>
                            </th>
                            <th>货物名称
                                <i data-sort="goods_name" class="pull-right fa fa-sort"></i>
                            </th>
                            <th>单价<i data-sort="price" class="pull-right fa fa-sort"></i></th>
                            <th>数量<i data-sort="number" class="pull-right fa fa-sort"></i></th>
                            <th>总金额<i data-sort="total" class="pull-right fa fa-sort"></i></th>
                            <th>交货数量<i data-sort="deliver_number" class="pull-right fa fa-sort"></i></th>
                            <th>付款/审核状态<i data-sort="pay_status" class="pull-right fa fa-sort"></i></th>
                            <th>订单状态</th>
                            <th>付款方式</th>
                            <th>付款日期<i data-sort="pay_date" class="pull-right fa fa-sort"></i></th>
                            <th>付款条件</th>
                            <th>操作员<i data-sort="dep_name" class="pull-right fa fa-sort"></i></th>
                            <th>操作</th>
                        </tr>
                        </thead>
                        <tbody>
                        </tbody>
                    </table>

                </div>
                <div class="su-pager text-right"></div>
            </div>
        </div>
    </div>
</div>
</body>
<%- include('../../common/script-handlebars.html') %>
<%- include('../../common/script-moment.html') %>
<%- include('../../common/script-common.html') %>
<!-- build:js ../../scripts/store/cashindex.ba.jsx.js  -->
<script type="text/javascript" src="./index.js"></script>
<!-- endbuild -->

</html>